<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>CSS_2D效果展示</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .b1{
            position: relative;
            width: 100px;
            height: 100px;
            background-color: blue;
        }
        .b2{
            transform: translate(-50%,-50%);
            position: absolute;
            top: 50%;
            left: 50%;
            width: 50px;
            height: 50px;
            background-color: pink;
        }
        .b3{
            position: relative;
            width: 200px;
            height: 30px;
            border: 3px solid black;
        }
        .b3::after{
            transition: all 0.6s;
            transform: rotate(45deg);
            content: "";
            position: absolute;
            top: 10px;
            right: 10px;
            width: 5px;
            height: 5px;
            border-right: 1px solid black;
            border-bottom: 1px solid black;
        }
        .b3:hover::after{
            transform: rotate(225deg);
        }
        .b4{
            overflow: hidden;
            width: 100px;
            height: 100px;
            background-color: skyblue;
        }
        .b5{
            width: 100px;
            height: 100px;
            background: purple;
            transform-origin: left bottom;
            transform: rotate(-90deg);
            transition: all 1s;
        }

        .b4:hover .b5{
            transform: rotate(0deg);
        }

        .b6{
            overflow: hidden;
            position: relative;
            width: 100px;
            height: 100px;
            background-color: blue;
        }
        .b7{
            position: absolute;
            top: 25%;
            left: 25%;
            width: 50px;
            height: 50px;
            background-color: red;
            transition: all 1s;
        }

        .b6:hover .b7{
            transform: scale(1.1);
        }

    </style>
</head>
<body>

<div class="b1">
    <div class="b2">
    </div>
</div>

<div class="b3">
</div>

<div class="b4">
    <div class="b5">
    </div>
</div>

<div class="b6">
    <div class="b7">

    </div>
</div>

</body>
</html>